#include <iostream>
using namespace std;

/**
 * 斐波那契数列：输出前20项（1,1,2,3,5,8...）
 */
int main(int argc, char const *argv[])
{
    int arry[20] = {1,1,2};

    for (int i = 2; i < 20; i++)
    {
        arry[i] = arry[i - 1] + arry[i - 2];
    }
    for (int i = 0; i < 20; i++)
    {
        cout << arry[i] <<" ";
    }
    
    return 0;
}
